<!--
  Generated template for the CustomerAddressListPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>收货地址管理</ion-title>
    <ion-buttons left>
      <button ion-button icon-only (click)="dismiss()">
        <ion-icon name="ios-arrow-back"></ion-icon>
      </button>
    </ion-buttons>
  </ion-navbar>

</ion-header>


<ion-content padding>
  <div class="w12 pb50" *ngIf="addlist">
    <div class="w12 cart_pro mb15 pl15 pt15 pr15 bgcolor_white" *ngFor="let ad of addlist; let i = index">
      <div class="w12 cart_pro_list">
        <div class="w12 cart_pro_item pl0" (click)="dismiss(ad)">
          <h3 class="w12 pro_name">
            {{ad.KHXM}}
            <span class="ml10 font_size_standard">{{ad.LXDH}}</span>
          </h3>
          <div class="w12 mt5 font_black_666 font_size_standard">
            <i class="fa fa-map-marker mr5" style="color:#347eff;"></i>
            {{ad.DZ[0]?.VALUE}} {{ad.DZ[1]?.VALUE}} {{ad.DZ[2]?.VALUE}} {{ad.DZ[3]?.VALUE}} {{ad.ADDRESS }} {{ad.XXDZ}}
          </div>
        </div>
        <div class="w12 cart_cz lh20">
          <div class="fl" (click)="choose(ad)">
            <i class=" fl fa fa-circle-thin mr5 lh20"
               [class.fa-circle-thin]="ad.STUATS==0"
               [class.fa-check-circle-o]="ad.STUATS==1"
               [class.font_blue]="ad.STUATS==1"></i>
            <span class="fl font_size_standard" [class.font_blue]="ad.STUATS==1">设为默认</span>
          </div>
          <div class="fr pl20" (click)="edit(ad,'CustomerAddressAddPage')">
            <i class=" fl fa fa-edit mr5 lh20"></i>
            <span class="fl font_size_standard">编辑</span>
          </div>
          <div class="fr pl20" (click)="delete(ad,i)">
            <i class=" fl fa fa-trash-o mr5 lh20"></i>
            <span class="fl font_size_standard">删除</span>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div *ngIf="addlist.length==0" class="w12 mt20 mb20 tc font_gray">
    ------------------------ 已经到底了 ------------------------
  </div>

</ion-content>

<ion-footer>
  <div class="w12 bottom_btn bgcolor_blue font_white">
    <span class="w12 font_size_large lh50 tc sure" (click)="push('CustomerAddressAddPage',{'title':'新增地址'})">新增地址</span>
  </div>
</ion-footer>
